﻿using System;
using Gtk;

namespace GtkSharpTutorial
{
    class Program
    {

        /* another callback */
        static void delete_event(object obj, DeleteEventArgs args)
        {
            Application.Quit();
        }

        static void Main(string[] args)
        {
            Application.Init();
            Form form = new Form();
            form.DeleteEvent += delete_event;


            /* Rest in gtk_main and wait for the fun to begin! */
            Application.Run();
        }
    }
}
